#ifndef MENUBAR_H
#define MENUBAR_H

#include "Include.h"
#include "Draw.h"

namespace FunctionViewer {
	class MenuBar {
		friend class Draw;
		friend class MenuItem;

		//variables.
		private:
		MenuItem *file, *edit, *help;
		int width, height;
		
		int MenuItems;

		Config config;
		Draw draw;

		public:
		//Constructor and destructor.
		MenuBar();
		~MenuBar();

		void init(Config con, Draw draw);

		//Create a new MenuItem
		MenuItem* createMenuItem(char* name);
		//MenuItem* createMenuItem(char* name, int x, int width);

		//Draw the Menu
		void drawMenu();

		int getHeight() {
			return height;
		}
	};
}

#endif // MENUBAR_H